package com.yk.pool;


/**
 * Created by Administrator on 2016/4/5.
 */
public class WorkThread implements Runnable {
    private CommonInterface commonInterface;

    public CommonInterface getCommonInterface() {
        return commonInterface;
    }

    public WorkThread(CommonInterface commonInterface){
        this.commonInterface = commonInterface;
    }

    @Override
    public void run() {
        try{
            commonInterface.execute();
        }catch (Exception e){
            e.printStackTrace();
        }
    }
}
